package com.syz.httpd.example;

import com.syz.httpd.filter.Filter;
import com.syz.httpd.handler.Request;
import com.syz.httpd.handler.Response;
import com.xiaoleilu.hutool.log.Log;
import com.xiaoleilu.hutool.log.StaticLog;

/**
 * httpd filter
 * 
 * @author SYZ
 * @date 2017年11月29日 下午5:25:11
 * @version 1.0.0
 * @see com.syz.httpd.example.MyFilter
 */
public class MyFilter implements Filter {
	private static final Log log = StaticLog.get();

	@Override
	public boolean doFilter(Request request, Response response) {
		if(request.getUri().contains("syz")){
			log.info("my filter!!!! -- - -clx{} ",MyFilter.class);
		}
		return true;
	}

}
